popupContext

Positions a Popup dimension based on Popup dimension context

The position will be bound to the screen dimensions automatically (the popup won't overflow "off-screen")

Return

BiFunction - the positioner function to apply to positionX or positionY in the Builder

Author

fzzyhmstrs

Since

0.2.0

Parameters

f

Function - function to provide the dimension. Supplies the corresponding widget size in the relevant dimension (PositionX -> widget width, etc)